﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataTier
{

    public class Station
    {

        private string _address;
        private string _city;
        private int _zipCode;
        private int _availableBatteries;
        private Location _location;
        private int _id;

        public Station(string address, int zipCode, int nrOfBatteries, Location location)
        {
            _address = address;
            _zipCode = zipCode;
            _availableBatteries = nrOfBatteries;
            _location = location;
        }

        public Station()
        {
        }

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }

        public string City
        {
            get { return _city; }
            set { _city = value; }
        }

        public int ZipCode
        {
            get { return _zipCode; }
            set { _zipCode = value; }
        }

        public int AvailableBatteries
        {
            get { return _availableBatteries; }
            set { _availableBatteries = value; }
        }

        public Location Location
        {
            get { return _location; }
            set { _location = value; }
        }

        public override string ToString()
        {
            return _address + ", " + _zipCode.ToString() + ", " + _city;
        }
        
    }

}
